package chapter_seventeen.text240;

/**
 * Data time:2021/11/8 15:28
 * StudentID:2019112118
 * Author:hgw
 * Description: 退出命令类，充当具体命令类
 */
public class ExitCommand extends Command{

    private SystemExitClass seObj;      //维持对请求接收者的引用

    public ExitCommand() {
        seObj = new SystemExitClass();
    }
    @Override
    public void execute() {
        seObj.exit();
    }
}
